﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinCourseControls
{
    public partial class FrmFlowLayoutPanel : Form
    {
        public FrmFlowLayoutPanel()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 从下到上按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            flowLayoutPanel1.FlowDirection = FlowDirection.BottomUp;//从下至上排列
        }

        /// <summary>
        /// 从右至左按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            flowLayoutPanel2.FlowDirection = FlowDirection.RightToLeft;//从右至左排列
        }
    }
}
